/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.kaaction.common.persistence.DataEntity;

/**
 * 商品分类Entity
 * @author huanghaiming
 * @version 2017-05-19
 */
public class Spu extends DataEntity<Spu> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 商品名称
	private String code;		// 商品编号
	private String brief;		// 简介
	private String description;		// 详情
	private String simpleDescription;		// 简单描述
	private String status;		// status
	private String brandId;		// brand_id
	private String supplierId;		// supplier_id
	private String classifyId;		// classify_id
	private MerClassify merClassify;	
	private String homeRecommend;		// 首页推荐
	private Integer sort;		//排序
	private String type;       //标志
	private String brandName;		//品牌名称
	private String classifyName;		// 分类名称
	private String photo;
	private String photo1;
	private String photo2;
	private String photo3;
	private String photo4;
	private String photoThumb;
	private String tag;
	private String tag1;
	private String tag2;
	private String tag3;
	private String tag4;
	private String[] tag5;
	private String[] tag6;
	private String[] tag7;
	private String[] tag8;
	private String[] tag9;
	
	private String opeProtitle;
	
	private String opeproId;
	
	private String opecontId;		// 内容
	private String opecontTitle;		// 内容名称
	
	private String recommendPhoto; //首页推荐图
	
	private String isBanner; //Banner展示
	
	private String flag;
	
	
	List<Attribute> attrList = Lists.newArrayList();//属性
	
	List<Brand> brandList = Lists.newArrayList();//品牌
	
	List<Supplier> supplierList = Lists.newArrayList();//供应商
	
	List<Sku> eventSkuList = Lists.newArrayList();//商品种类
	
	List<Color> colorList = Lists.newArrayList();//颜色
	
	List<Size> sizeList = Lists.newArrayList();//尺码
	
	public Spu() {
		super();
	}

	public Spu(String id){
		super(id);
	}

	@Length(min=0, max=255, message="商品名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="商品编号长度必须介于 0 和 255 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=255, message="简介长度必须介于 0 和 255 之间")
	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getSimpleDescription() {
		return simpleDescription;
	}

	public void setSimpleDescription(String simpleDescription) {
		this.simpleDescription = simpleDescription;
	}

	@Length(min=0, max=3, message="status长度必须介于 0 和 3 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=64, message="brand_id长度必须介于 0 和 64 之间")
	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}
	
	@Length(min=0, max=64, message="supplier_id长度必须介于 0 和 64 之间")
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	
	@Length(min=0, max=64, message="classify_id长度必须介于 0 和 64 之间")
	public String getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(String classifyId) {
		this.classifyId = classifyId;
	}

	public List<Attribute> getAttrList() {
		return attrList;
	}

	public void setAttrList(List<Attribute> attrList) {
		this.attrList = attrList;
	}

	public List<Brand> getBrandList() {
		return brandList;
	}

	public void setBrandList(List<Brand> brandList) {
		this.brandList = brandList;
	}

	public List<Supplier> getSupplierList() {
		return supplierList;
	}

	public void setSupplierList(List<Supplier> supplierList) {
		this.supplierList = supplierList;
	}

	public String getHomeRecommend() {
		return homeRecommend;
	}

	public void setHomeRecommend(String homeRecommend) {
		this.homeRecommend = homeRecommend;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getClassifyName() {
		return classifyName;
	}

	public void setClassifyName(String classifyName) {
		this.classifyName = classifyName;
	}

	public List<Sku> getEventSkuList() {
		return eventSkuList;
	}

	public void setEventSkuList(List<Sku> eventSkuList) {
		this.eventSkuList = eventSkuList;
	}

	public List<Color> getColorList() {
		return colorList;
	}

	public void setColorList(List<Color> colorList) {
		this.colorList = colorList;
	}

	public List<Size> getSizeList() {
		return sizeList;
	}

	public void setSizeList(List<Size> sizeList) {
		this.sizeList = sizeList;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getPhoto1() {
		return photo1;
	}

	public void setPhoto1(String photo1) {
		this.photo1 = photo1;
	}

	public String getPhoto2() {
		return photo2;
	}

	public void setPhoto2(String photo2) {
		this.photo2 = photo2;
	}

	public String getPhoto3() {
		return photo3;
	}

	public void setPhoto3(String photo3) {
		this.photo3 = photo3;
	}

	public String getPhoto4() {
		return photo4;
	}

	public void setPhoto4(String photo4) {
		this.photo4 = photo4;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getTag1() {
		return tag1;
	}

	public void setTag1(String tag1) {
		this.tag1 = tag1;
	}

	public String getTag2() {
		return tag2;
	}

	public void setTag2(String tag2) {
		this.tag2 = tag2;
	}

	public String getTag3() {
		return tag3;
	}

	public void setTag3(String tag3) {
		this.tag3 = tag3;
	}

	public String getTag4() {
		return tag4;
	}

	public void setTag4(String tag4) {
		this.tag4 = tag4;
	}

	public String[] getTag5() {
		return tag5;
	}

	public void setTag5(String[] tag5) {
		this.tag5 = tag5;
	}

	public String[] getTag6() {
		return tag6;
	}

	public void setTag6(String[] tag6) {
		this.tag6 = tag6;
	}

	public String[] getTag7() {
		return tag7;
	}

	public void setTag7(String[] tag7) {
		this.tag7 = tag7;
	}

	public String[] getTag8() {
		return tag8;
	}

	public void setTag8(String[] tag8) {
		this.tag8 = tag8;
	}

	public String[] getTag9() {
		return tag9;
	}

	public void setTag9(String[] tag9) {
		this.tag9 = tag9;
	}

	public String getRecommendPhoto() {
		return recommendPhoto;
	}

	public void setRecommendPhoto(String recommendPhoto) {
		this.recommendPhoto = recommendPhoto;
	}

	public String getIsBanner() {
		return isBanner;
	}

	public void setIsBanner(String isBanner) {
		this.isBanner = isBanner;
	}

	public MerClassify getMerClassify() {
		return merClassify;
	}

	public void setMerClassify(MerClassify merClassify) {
		this.merClassify = merClassify;
	}

	public String getPhotoThumb() {
		return photoThumb;
	}

	public void setPhotoThumb(String photoThumb) {
		this.photoThumb = photoThumb;
	}

	public String getOpeproId() {
		return opeproId;
	}

	public void setOpeproId(String opeproId) {
		this.opeproId = opeproId;
	}

	public String getOpeProtitle() {
		return opeProtitle;
	}

	public void setOpeProtitle(String opeProtitle) {
		this.opeProtitle = opeProtitle;
	}


	public String getOpecontId() {
		return opecontId;
	}

	public void setOpecontId(String opecontId) {
		this.opecontId = opecontId;
	}

	public String getOpecontTitle() {
		return opecontTitle;
	}

	public void setOpecontTitle(String opecontTitle) {
		this.opecontTitle = opecontTitle;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	
	
}